package com.itheima.service;

import com.itheima.domain.Book;

import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Transactional
public interface BookService {
    /*
    插入数据
    */
    public boolean save(Book book);

/*跟新*/
    public boolean update(Book book);

/*删除*/
    public boolean delete(Integer id);

/*按id查询*/
    public Book getById(Integer id);

/*查询全部*/
    public List<Book> getAll();
}
